{% extends "base.html" %}
{% block content %}
<div class="form-container">
    <h2>登录</h2>
    <form method="POST" action="{{ url_for('login') }}">
        <input type="text" name="username" placeholder="用户名" required>
        <input type="password" name="password" placeholder="密码" required>
        <button type="submit" class="btn btn-primary">登录</button>
    </form>
    <p>没有账号？<a href="{{ url_for('register') }}">注册</a></p>
</div>
{% endblock %}
